<?php
/**
 * @package WordPress
 * @subpackage MIP
 * @since MIP 1
 */

get_header(); ?>
<?php
if(is_front_page()){
	$sideBefore = "<div id='widget-home'>";
	$sideAfter = "</div>";
	}

 ?>
	<!-- BEGIN CONTENT -->
	<div id="container_content">
	<div id="padding_content">
		<div id="maincontent">
			<div id="main">
				<div id="content">
				<?php
				/* Run the loop to output the posts.
				 * If you want to overload this in a child theme then include a file
				 * called loop-index.php and that will be used instead.
				 */
				 get_template_part( 'loop', 'index' );
				?>
					</div><!-- end of content -->
			</div><!-- end of main -->
			<div id="side">
				<?php echo $sideBefore;?>
				<?php get_sidebar(); ?>
				<?php echo $sideAfter;?>
			</div><!-- end of side -->
		</div><!-- end of maincontent -->
	</div>
	<div class="clr"></div>
	</div>
	<!-- END OF CONTENT -->
	
</div><!-- end of main container -->
<?php get_footer(); ?>
